home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trains: The Screensaver
/
Trains: The Screen Saver.iso
/
setup.ins
< prev
Wrap
Text File
|
1995-08-14
|
28KB
|
947 lines
;; TRAINS! the screen saver instalit script
DefineVariables
;; set these according to each program
;; these also need changed around line 100 to reflect K's
Number [CriscrosSize] := 1950000
Number [DeskmoveSize] := 1570000
Number [ExpressSize] := 1772000
Number [MovieSize] := 460000
Number [PuzltrakSize] := 530000
Number [SceneSize] := 1995000
Number [SlideshowSize] := 4600000
Number [SwitchSize] := 585000
Number [TracksSize] := 50000
Number [ClockSize] := 110000
;; this is calculated below
Number [TotalByteSize] := 78000000
Number [Check1] := 1
Number [Check2] := 1
Number [Check3] := 1
Number [Check4] := 1
Number [Check5] := 1
Number [Check6] := 1
Number [Check7] := 1
Number [Check8] := 1
Number [Check9] := 1
Number [Check0] := 1
Number [ChecksDone] := 1
Text [SDir] := D:
Text [DDir] := C:\Trainsvr
Number [VFW] := 1
Text [CrisCrosDir] := \Criscros
Text [DeskmoveDir] := \Deskmove
Text [ExpressDir] := \Express
Text [MovieDir] := \MoviePly
Text [PuzltrakDir] := \Puzltrak
Text [SceneDir] := \Scene
Text [SlideshowDir] := \Slideshw
Text [SwitchDir] := \Switchyd
Text [TracksDir] := \Tracks
Text [ClockDir] := \RRClock
Number [Movie1] := 1
Number [Movie2] := 0
Number [Movie3] := 0
Number [Movie4] := 1
Number [Movie5] := 0
Number [Movie6] := 0
Number [Movie7] := 0
Number [Movie8] := 0
Number [Movie9] := 1
Number [Movie10] := 0
Number [Movie11] := 0
Number [Movie12] := 0
Number [Movie13] := 0
Number [Movie14] := 0
Number [Movie15] := 0
Number [Movie16] := 0
Number [Movie17] := 0
Number [Movie18] := 0
Number [Movie19] := 0
Number [Movie20] := 0
EndDefineVariables
SetReplacementInquiry Off
[InstallationDirectory] := C:\TRAINSVR
SetTopLineTo TRAINS! the screen saver Copyright (C) 1995 Abracadata, Ltd.
SetBackGroundColor 0 0 128 0 0 8
ShowWindow Maximized
ShowBitmap 1
Dialog WhiteOnBlue
Thank you for purchasing TRAINS! the screen saver.
Carefully follow the instructions to install it to your hard drive.
EndDialog
[TotalByteSize] := [CriscrosSize]+[DeskmoveSize]+[ExpressSize]+[MovieSize]+[PuzltrakSize]+[SceneSize]+[SlideshowSize]+[SwitchSize]+[TracksSize]+[ClockSize]
:Main
ClearScreen
DialogBox 160 150 UseHeader "TRAINS! the screen saver INSTALLATION" Returns [ChecksDone] ModalFrame SysMenu BorDlg
BorGroup @xy(12,4) 140 120 "Choose Which Modules To Install" BorCenter BorCaption
BorCheckBox @xy(30,20) 110 10 "Crazy Tracks [50k]" uses [Check9]
BorCheckBox @xy(30,30) 110 10 "CrissCross [1950k]" uses [Check1]
BorCheckBox @xy(30,40) 110 10 "Desktop Mover [1570k]"uses [Check2]
BorCheckBox @xy(30,50) 110 10 "Express Train [1772k]" uses [Check3]
BorCheckBox @xy(30,60) 110 10 "Movie Player [460k+Movies]" uses [Check4]
BorCheckBox @xy(30,70) 110 10 "Puzzle Track [530k]" uses [Check5]
BorCheckBox @xy(30,80) 110 10 "Railroad Clock [109k]" uses [Check0]
BorCheckBox @xy(30,90) 110 10 "Railroad Scenery [1995k]" uses [Check6]
BorCheckBox @xy(30,100) 110 10 "Slide Show [4600k]" uses [Check7]
BorCheckBox @xy(30,110) 110 10 "Switching Yard [585k]" uses [Check8]
BorDivider @xy(0,127) 160 3 BorHDip
BorDivider @xy(0,132) 160 3 BorHDip
BorDivider @xy(0,137) 160 3 BorHDip
BorDivider @xy(0,142) 160 3 BorHDip
BorDivider @xy(0,147) 160 3 BorHDip
BorPushButton @xy(30,127) 37 25 "Ok" OK
BorPushButton @xy(100,127) 37 25 "Cancel" CANCEL
EndDialogBox
if [ChecksDone] = 2
goto Main
EndIf
if [Check1]+[Check2]+[Check3]+[Check4]+[Check5]+[Check6]+[Check7]+[Check8]+[Check9]+[Check0] = 0
ClearScreen
Dialog PressAKey WhiteOnBlue
You need to select savers to install. Press ESC to exit.
EndDialog
goto Main
endif
;; do AVI movie dialog
if [Check4] = 1
Do CheckMovies
endif
if [Check1] = 1
[TotalByteSize] := [TotalByteSize]+[CriscrosSize]
endif
if [Check2] = 1
[TotalByteSize] := [TotalByteSize]+[DeskmoveSize]
endif
if [Check3] = 1
[TotalByteSize] := [TotalByteSize]+[ExpressSize]
endif
if [Check4] = 1
[TotalByteSize] := [TotalByteSize]+[MovieSize]
Do AddMovieSize
endif
if [Check5] = 1
[TotalByteSize] := [TotalByteSize]+[PuzltrakSize]
endif
if [Check6] = 1
[TotalByteSize] := [TotalByteSize]+[SceneSize]
endif
if [Check7] = 1
[TotalByteSize] := [TotalByteSize]+[SlideshowSize]
endif
if [Check8] = 1
[TotalByteSize] := [TotalByteSize]+[SwitchSize]
endif
if [Check9] = 1
[TotalByteSize] := [TotalByteSize]+[TrackSize]
endif
if [Check0] = 1
[TotalByteSize] := [TotalByteSize]+[ClockSize]
endif
DetermineInstallationDrive TotalByteSize RequireFixed
[InstallationDirectory] := InstallationDrive:\TRAINSVR
DetermineInstallationDirectory [InstallationDirectory] TotalByteSize RequireFixed
[DDir] := [WindowsDirectory]
;;ALWAYS copy Trainsvr.ini to windows
CopyFiles from [InstallFromDrive]:\WinDir to [DDir]
Trainsvr.ini
EndCopyFiles
SetFileAttrTo 00 for [DDir]\TrainSvr.Ini
;;ALWAYS copy Readme.txt to installationdir
CopyFiles from [InstallFromDrive]: to [InstallationDirectory]
Readme.txt
EndCopyFiles
SetFileAttrTo 00 for [InstallationDirectory]\Readme.txt
;;ALWAYS copy \launcher\trains.exe to installationdir
CopyFiles from [InstallFromDrive]:\launcher to [InstallationDirectory]
TRAINS!.EXE
EndCopyFiles
SetFileAttrTo 00 for [InstallationDirectory]\TRAINS!.EXE
;;ALWAYS copy vbrun300.dll & threed.vbx to windows\system
CopyFiles from [InstallFromDrive]:\WinSys to [DDir]\system
VBRUN300.Dll
Threed.vbx
EndCopyFiles
SetFileAttrTo 00 for [DDir]\System\Vbrun300.dll
;;grp2 ver.dll,commdlg.dll,gauge.vbx,mci.vbx,cmdialog.vbx
if [Check4] = 1
[SDir] := [InstallFromDrive]:\WinSys
CopyFiles from [SDir] to [DDir]\system
Ver.Dll
CommDlg.dll
Gauge.Vbx
Mci.Vbx
Cmdialog.Vbx
;; GifBox.Vbx
EndCopyFiles
SetFileAttrTo 00 for [DDir]\system\Ver.Dll
SetFileAttrTo 00 for [DDir]\system\CommDlg.dll
SetFileAttrTo 00 for [DDir]\system\Gauge.Vbx
SetFileAttrTo 00 for [DDir]\system\Mci.Vbx
SetFileAttrTo 00 for [DDir]\system\Cmdialog.Vbx
;; SetFileAttrTo 00 for [DDir]\system\GifBox.Vbx
EndIf
;;grp4 owl250.dll,bids45.dll,bc450rtl.dll
if [Check2]+[Check3]+[Check7] = 0
else
[SDir] := [InstallFromDrive]:\WinSys
CopyFiles from [SDir] to [DDir]\system
Owl250.dll
Bids45.dll
Bc450rtl.dll
GifBox.vbx
Bivbx11.dll
EndCopyFiles
SetFileAttrTo 00 for [DDir]\system\Owl250.dll
SetFileAttrTo 00 for [DDir]\system\Bids45.dll
SetFileAttrTo 00 for [DDir]\system\Bc450rtl.dll
SetFileAttrTo 00 for [DDir]\system\GifBox.vbx
SetFileAttrTo 00 for [DDir]\system\Bivbx11.dll
EndIf
;;done with WINSYS stuff
;;now do each savers files... .scr to windows, rest to priv dir
if [Check1] = 1
[SDir] := [InstallFromDrive]:[CrisCrosDir]
;; [DDir] := [InstallationDirectory][CrisCrosDir]
[DDir] := [WindowsDirectory]
CopyFiles from [InstallFromDrive]:\WinDir to [DDir]
CrisCros.Scr
EndCopyFiles
Do CopyAll
SetFileAttrTo 00 for [DDir]\CrisCros.Scr
SetFileAttrTo 00 for [DDir]\TBUILD.WAV
SetFileAttrTo 00 for [DDir]\TDESTROY.WAV
SetFileAttrTo 00 for [DDir]\TDIESEL.WAV
SetFileAttrTo 00 for [DDir]\TSTEAM.WAV
EndIf
if [Check2] = 1
[SDir] := [InstallFromDrive]:[DeskmoveDir]
[DDir] := [InstallationDirectory][DeskmoveDir]
CopyFiles from [InstallFromDrive]:\WinDir to [WindowsDirectory]
DeskMove.Scr
EndCopyFiles
Do CopyAll
SetFileAttrTo 00 for [WindowsDirectory]\DeskMove.Scr
SetFileAttrTo 00 for [DDir]\Train1.wav
SetFileAttrTo 00 for [DDir]\Train2.wav
SetFileAttrTo 00 for [DDir]\Train3.wav
EndIf
if [Check3] = 1
[SDir] := [InstallFromDrive]:[ExpressDir]
[DDir] := [InstallationDirectory][ExpressDir]
CopyFiles from [InstallFromDrive]:\WinDir to [WindowsDirectory]
Express.Scr
EndCopyFiles
Do CopyAll
SetFileAttrTo 00 for [WindowsDirectory]\Express.Scr
SetFileAttrTo 00 for [DDir]\Train1.